home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / necko / nsIDirIndex.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  8KB  |  254 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIDirIndex.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIDirIndex_h__
  6. #define __gen_nsIDirIndex_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17.  
  18. /* starting interface:    nsIDirIndex */
  19. #define NS_IDIRINDEX_IID_STR "23bbabd0-1dd2-11b2-86b7-aad68ae7d7e0"
  20.  
  21. #define NS_IDIRINDEX_IID \
  22.   {0x23bbabd0, 0x1dd2, 0x11b2, \
  23.     { 0x86, 0xb7, 0xaa, 0xd6, 0x8a, 0xe7, 0xd7, 0xe0 }}
  24.  
  25. /** A class holding information about a directory index.
  26.  * These have no reference back to their original source -
  27.  * changing these attributes won't affect the directory
  28.  */
  29. class NS_NO_VTABLE nsIDirIndex : public nsISupports {
  30.  public: 
  31.  
  32.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDIRINDEX_IID)
  33.  
  34.   /**
  35.      * Entry's type is unknown
  36.      */
  37.   enum { TYPE_UNKNOWN = 0U };
  38.  
  39.   /**
  40.      * Entry is a directory
  41.      */
  42.   enum { TYPE_DIRECTORY = 1U };
  43.  
  44.   /**
  45.      * Entry is a file
  46.      */
  47.   enum { TYPE_FILE = 2U };
  48.  
  49.   /**
  50.      * Entry is a symlink
  51.      */
  52.   enum { TYPE_SYMLINK = 3U };
  53.  
  54.   /**
  55.      * The type of the entry - one of the constants above
  56.      */
  57.   /* attribute unsigned long type; */
  58.   NS_IMETHOD GetType(PRUint32 *aType) = 0;
  59.   NS_IMETHOD SetType(PRUint32 aType) = 0;
  60.  
  61.   /**
  62.      * The content type - may be null if it is unknown.
  63.      * Unspecified for directories
  64.      */
  65.   /* attribute string contentType; */
  66.   NS_IMETHOD GetContentType(char * *aContentType) = 0;
  67.   NS_IMETHOD SetContentType(const char * aContentType) = 0;
  68.  
  69.   /**
  70.      * The fully qualified filename, expressed as a uri
  71.      *
  72.      * This is encoded with the encoding specified in
  73.      * the nsIDirIndexParser, and is also escaped.
  74.      */
  75.   /* attribute string location; */
  76.   NS_IMETHOD GetLocation(char * *aLocation) = 0;
  77.   NS_IMETHOD SetLocation(const char * aLocation) = 0;
  78.  
  79.   /**
  80.      * A description for the filename, which should be
  81.      * displayed by a viewer
  82.      */
  83.   /* attribute wstring description; */
  84.   NS_IMETHOD GetDescription(PRUnichar * *aDescription) = 0;
  85.   NS_IMETHOD SetDescription(const PRUnichar * aDescription) = 0;
  86.  
  87.   /**
  88.      * File size, with -1 meaning "unknown"
  89.      */
  90.   /* attribute long long size; */
  91.   NS_IMETHOD GetSize(PRInt64 *aSize) = 0;
  92.   NS_IMETHOD SetSize(PRInt64 aSize) = 0;
  93.  
  94.   /**
  95.      * Last-modified time in seconds-since-epoch.
  96.      * -1 means unknown - this is valid, because there were no
  97.      * ftp servers in 1969
  98.      */
  99.   /* attribute PRTime lastModified; */
  100.   NS_IMETHOD GetLastModified(PRTime *aLastModified) = 0;
  101.   NS_IMETHOD SetLastModified(PRTime aLastModified) = 0;
  102.  
  103. };
  104.  
  105. /* Use this macro when declaring classes that implement this interface. */
  106. #define NS_DECL_NSIDIRINDEX \
  107.   NS_IMETHOD GetType(PRUint32 *aType); \
  108.   NS_IMETHOD SetType(PRUint32 aType); \
  109.   NS_IMETHOD GetContentType(char * *aContentType); \
  110.   NS_IMETHOD SetContentType(const char * aContentType); \
  111.   NS_IMETHOD GetLocation(char * *aLocation); \
  112.   NS_IMETHOD SetLocation(const char * aLocation); \
  113.   NS_IMETHOD GetDescription(PRUnichar * *aDescription); \
  114.   NS_IMETHOD SetDescription(const PRUnichar * aDescription); \
  115.   NS_IMETHOD GetSize(PRInt64 *aSize); \
  116.   NS_IMETHOD SetSize(PRInt64 aSize); \
  117.   NS_IMETHOD GetLastModified(PRTime *aLastModified); \
  118.   NS_IMETHOD SetLastModified(PRTime aLastModified); 
  119.  
  120. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  121. #define NS_FORWARD_NSIDIRINDEX(_to) \
  122.   NS_IMETHOD GetType(PRUint32 *aType) { return _to GetType(aType); } \
  123.   NS_IMETHOD SetType(PRUint32 aType) { return _to SetType(aType); } \
  124.   NS_IMETHOD GetContentType(char * *aContentType) { return _to GetContentType(aContentType); } \
  125.   NS_IMETHOD SetContentType(const char * aContentType) { return _to SetContentType(aContentType); } \
  126.   NS_IMETHOD GetLocation(char * *aLocation) { return _to GetLocation(aLocation); } \
  127.   NS_IMETHOD SetLocation(const char * aLocation) { return _to SetLocation(aLocation); } \
  128.   NS_IMETHOD GetDescription(PRUnichar * *aDescription) { return _to GetDescription(aDescription); } \
  129.   NS_IMETHOD SetDescription(const PRUnichar * aDescription) { return _to SetDescription(aDescription); } \
  130.   NS_IMETHOD GetSize(PRInt64 *aSize) { return _to GetSize(aSize); } \
  131.   NS_IMETHOD SetSize(PRInt64 aSize) { return _to SetSize(aSize); } \
  132.   NS_IMETHOD GetLastModified(PRTime *aLastModified) { return _to GetLastModified(aLastModified); } \
  133.   NS_IMETHOD SetLastModified(PRTime aLastModified) { return _to SetLastModified(aLastModified); } 
  134.  
  135. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  136. #define NS_FORWARD_SAFE_NSIDIRINDEX(_to) \
  137.   NS_IMETHOD GetType(PRUint32 *aType) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetType(aType); } \
  138.   NS_IMETHOD SetType(PRUint32 aType) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetType(aType); } \
  139.   NS_IMETHOD GetContentType(char * *aContentType) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetContentType(aContentType); } \
  140.   NS_IMETHOD SetContentType(const char * aContentType) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetContentType(aContentType); } \
  141.   NS_IMETHOD GetLocation(char * *aLocation) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLocation(aLocation); } \
  142.   NS_IMETHOD SetLocation(const char * aLocation) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetLocation(aLocation); } \
  143.   NS_IMETHOD GetDescription(PRUnichar * *aDescription) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDescription(aDescription); } \
  144.   NS_IMETHOD SetDescription(const PRUnichar * aDescription) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDescription(aDescription); } \
  145.   NS_IMETHOD GetSize(PRInt64 *aSize) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSize(aSize); } \
  146.   NS_IMETHOD SetSize(PRInt64 aSize) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSize(aSize); } \
  147.   NS_IMETHOD GetLastModified(PRTime *aLastModified) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLastModified(aLastModified); } \
  148.   NS_IMETHOD SetLastModified(PRTime aLastModified) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetLastModified(aLastModified); } 
  149.  
  150. #if 0
  151. /* Use the code below as a template for the implementation class for this interface. */
  152.  
  153. /* Header file */
  154. class nsDirIndex : public nsIDirIndex
  155. {
  156. public:
  157.   NS_DECL_ISUPPORTS
  158.   NS_DECL_NSIDIRINDEX
  159.  
  160.   nsDirIndex();
  161.  
  162. private:
  163.   ~nsDirIndex();
  164.  
  165. protected:
  166.   /* additional members */
  167. };
  168.  
  169. /* Implementation file */
  170. NS_IMPL_ISUPPORTS1(nsDirIndex, nsIDirIndex)
  171.  
  172. nsDirIndex::nsDirIndex()
  173. {
  174.   /* member initializers and constructor code */
  175. }
  176.  
  177. nsDirIndex::~nsDirIndex()
  178. {
  179.   /* destructor code */
  180. }
  181.  
  182. /* attribute unsigned long type; */
  183. NS_IMETHODIMP nsDirIndex::GetType(PRUint32 *aType)
  184. {
  185.     return NS_ERROR_NOT_IMPLEMENTED;
  186. }
  187. NS_IMETHODIMP nsDirIndex::SetType(PRUint32 aType)
  188. {
  189.     return NS_ERROR_NOT_IMPLEMENTED;
  190. }
  191.  
  192. /* attribute string contentType; */
  193. NS_IMETHODIMP nsDirIndex::GetContentType(char * *aContentType)
  194. {
  195.     return NS_ERROR_NOT_IMPLEMENTED;
  196. }
  197. NS_IMETHODIMP nsDirIndex::SetContentType(const char * aContentType)
  198. {
  199.     return NS_ERROR_NOT_IMPLEMENTED;
  200. }
  201.  
  202. /* attribute string location; */
  203. NS_IMETHODIMP nsDirIndex::GetLocation(char * *aLocation)
  204. {
  205.     return NS_ERROR_NOT_IMPLEMENTED;
  206. }
  207. NS_IMETHODIMP nsDirIndex::SetLocation(const char * aLocation)
  208. {
  209.     return NS_ERROR_NOT_IMPLEMENTED;
  210. }
  211.  
  212. /* attribute wstring description; */
  213. NS_IMETHODIMP nsDirIndex::GetDescription(PRUnichar * *aDescription)
  214. {
  215.     return NS_ERROR_NOT_IMPLEMENTED;
  216. }
  217. NS_IMETHODIMP nsDirIndex::SetDescription(const PRUnichar * aDescription)
  218. {
  219.     return NS_ERROR_NOT_IMPLEMENTED;
  220. }
  221.  
  222. /* attribute long long size; */
  223. NS_IMETHODIMP nsDirIndex::GetSize(PRInt64 *aSize)
  224. {
  225.     return NS_ERROR_NOT_IMPLEMENTED;
  226. }
  227. NS_IMETHODIMP nsDirIndex::SetSize(PRInt64 aSize)
  228. {
  229.     return NS_ERROR_NOT_IMPLEMENTED;
  230. }
  231.  
  232. /* attribute PRTime lastModified; */
  233. NS_IMETHODIMP nsDirIndex::GetLastModified(PRTime *aLastModified)
  234. {
  235.     return NS_ERROR_NOT_IMPLEMENTED;
  236. }
  237. NS_IMETHODIMP nsDirIndex::SetLastModified(PRTime aLastModified)
  238. {
  239.     return NS_ERROR_NOT_IMPLEMENTED;
  240. }
  241.  
  242. /* End of implementation class template. */
  243. #endif
  244.  
  245. #define NS_DIRINDEX_CID \
  246. /* { f6913e2e-1dd1-11b2-84be-f455dee342af } */ \
  247. { 0xf6913e2e, \
  248.   0x1dd1, \
  249.   0x11b2, \
  250.   { 0x84, 0xbe, 0xf4, 0x55, 0xde, 0xe3, 0x42, 0xaf } \
  251. }
  252.  
  253. #endif /* __gen_nsIDirIndex_h__ */
  254.